import Vue from 'vue';
import App from './App';
import store from './store';
import uView from "uview-ui";
import api from '@/api/index.js';
import utils from '@/common/utils.js';
import { BigNumber } from 'bignumber.js'
import messages from './locale/index'
let i18nConfig = {
  locale: uni.getLocale(),
  messages
}
import VueI18n from 'vue-i18n'
Vue.use(VueI18n);
const i18n = new VueI18n(i18nConfig)
Vue.use(uView);
Vue.config.productionTip = false;
Vue.prototype.$store = store;
Vue.prototype.$utils=utils;
Vue.prototype.$BigNumber=BigNumber;
Vue.prototype.$api = api;
App.mpType = 'app';

const app = new Vue({
	i18n,
	store,
    ...App
})
app.$mount()
